import 'package:flutter/material.dart';
import '../MyButton.dart';
class SettingPage extends StatefulWidget {
  SettingPage({Key key}) : super(key: key);

  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return GridView(
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
          crossAxisCount: 3,
          childAspectRatio: 2.0,
        ),
        children:<Widget>[
          MyButton(text: 'Device',path: '/DevicePage'),
          MyButton(text: 'Location',path: '/LocationPage'),
          MyButton(text: 'Image',path: '/ImagePage'),
          MyButton(text: 'Video',path: '/VideoPage'),
          MyButton(text: '检测网络',path: '/CheckNetworkPage'),
          MyButton(text: 'Storage',path: '/StoragePage'),
          MyButton(text: 'ScanCode',path: '/ScanCodePage'),
          MyButton(text: '升级app',path: '/UpgradeAppPage'),
          MyButton(text: '打开外部应用',path: '/UrlLauncherPage'),
        ]
      ); 
  }
}

